<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="${pageContext.request.contextPath}/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<title>添加月嫂</title>
</head>
<body>
<div class="pd-20">
  <form action="${pageContext.request.contextPath}/staff/add.json" method="post" class="form form-horizontal" id="form-staff-add">
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>姓名：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" value="" placeholder="" id="wStaffName" name="wStaffName" datatype="*2-20" nullmsg="姓名不能为空">
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>身份证号码：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" name="wSIdcard" id="wSIdcard" datatype="*15-20" nullmsg="身份证号码不能为空">
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>性别：</label>
      <div class="formControls col-5">
        <select class="select" size="1"  name="wStaffGender" datatype="*" nullmsg="请选性别！">
        	<option value="1">男</option>
        	<option value="2">女</option>
        </select>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>电话：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" name="wSTelephone" id="wSTelephone" datatype="*11-20" nullmsg="电话不能为空">
      </div>
      <div class="col-4"> </div>
    </div>
   <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>家庭住址：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" name="wSAddress" id="wSAddress" datatype="*8-20" nullmsg="地址不能为空">
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>年龄：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" name="wSAddress" id="wSAge" datatype="*" nullmsg="年龄不能为空">
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3"><span class="c-red">*</span>照片：</label>
      <div class="formControls col-5">
        <input type="text" class="input-text" placeholder="" name="wSAddress" id="wSAge" datatype="*" nullmsg="年龄不能为空">
      </div>
      <div class="col-4"> </div>
    </div>
    <!--<div class="row cl">
      <span class="c-red">*</span><label class="form-label col-3">所属渠道：</label>
      <div class="formControls col-5"> <span class="select-box">
          <select class="select" size="1" name="wASupplierId" datatype="*" nullmsg="请选择渠道！">
          <option value="" selected>收费</option>
          <c:forEach items="${SUPPLIER_LIST}" var="supplier">
          <option value="${supplier.id}">${supplier.wSName}</option>
          </c:forEach>    
        </select>
        </span> </div>
      <div class="col-4"> </div>
    </div>-->
     <div class="row cl">
      <span class="c-red">*</span><label class="form-label col-3">白天收费 ：</label>
      <div class="formControls col-5"> <span class="select-box">
        <select class="select" size="1" name="wSPriceFirst" datatype="*" nullmsg="请选择收费！">
          <option value="" selected>请选择收费</option>
          <option value="30">30</option>
          <option value="40">40</option>
          <option value="50">50</option>
        </select>
        </span> </div>
        <label class="form-label col-3">夜晚收费 ：</label>
        <div class="formControls col-5"> <span class="select-box">
        <select class="select" size="1" name="wSPriceSecond" datatype="*" nullmsg="请选择收费！">
          <option value="" selected>请选择收费</option>
          <option value="60">60</option>
          <option value="70">70</option>
          <option value="80">80</option>
        </select>
        </span> </div>
        <label class="form-label col-3">全天收费 ：</label>
        <div class="formControls col-5"> <span class="select-box">
        <select class="select" size="1" name="wSPriceThird" datatype="*" nullmsg="请选择收费！">
          <option value="" selected>请选择收费</option>
          <option value="100">100</option>
          <option value="110">110</option>
          <option value="120">120</option>
        </select>
        </span> </div>
      <div class="col-4"> </div>
    </div>
    <input type="hidden" name="wSType" value="3">
    <div class="row cl">
      <div class="col-9 col-offset-3">
        <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
      </div>
    </div>
  </form>
    <!-- <form id="uploadFileForm" action="${pageContext.request.contextPath}/file/upload.html" enctype="multipart/form-data" method="post">
            <div class="lyct f-tac">
                <input type="file" name="file" accept=".jpg,.png,.jpeg,.JPG,.PNG,.JPEG" />
            </div>
            <div class="lybt">
                <button class="" type="button" >上传</button>
            </div>
    </form> -->
    <form id="uploadFileForm" action="${pageContext.request.contextPath}/file/upload.html" method="post" enctype="multipart/form-data">
	<input type="file" name="file" accept=".jpg,.png,.jpeg,.JPG,.PNG,.JPEG"/>
	<button type="submit" >上传</button>
	</form>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/H-ui.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/js/H-ui.admin.js"></script>
<script type="text/javascript">
$(function(){
	
	$("#form-staff-add").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(data){
			var index = parent.layer.getFrameIndex(window.name);
			parent.$('.btn-refresh').click();
			parent.layer.close(index);
		}
		
	});
});
</script>
</body>
</html>